package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
import com.ricchieri.dao.interf.IEmailToSendTypeDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.EmailToSendType;
import com.ricchieri.service.interf.IEmailToSendTypeService;

@Transactional(readOnly = true)
public class EmailToSendTypeService implements IEmailToSendTypeService, Serializable {
	private static final long serialVersionUID = -3977643826250073980L;
	IEmailToSendTypeDao emailToSendTypeDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<EmailToSendType> getAllEmailToSendType() {
		BasicFilter filter = new BasicFilter();
		return emailToSendTypeDao.getAllEmailToSendType(filter);
	}

	public IEmailToSendTypeDao getEmailToSendTypeDao() {
		return emailToSendTypeDao;
	}

	public void setemailToSendTypeDao(IEmailToSendTypeDao emailToSendTypeDao) {
		this.emailToSendTypeDao = emailToSendTypeDao;
	}
}
